﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.View
{
    public class VMaintenanceBillServiceItem
    {
        public Guid Id { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public Guid MaintenanceBillId { get; set; }

        /// <summary>
        /// 服务项目Id
        /// </summary>
        public Guid ServiceItemId { get; set; }

        /// <summary>
        /// 服务项目名称
        /// </summary>
        public string ServiceItemName { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 工时
        /// </summary>
        public int Hour { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 折扣
        /// </summary>
        public decimal Discount { get; set; }

        /// <summary>
        /// 技师提成
        /// </summary>
        public decimal? TechnicianCommission { get; set; }

        /// <summary>
        /// 技师提成类型
        /// </summary>
        public int? TechnicianCommissionType { get; set; }

        /// <summary>
        /// 技师提成金额
        /// </summary>
        public decimal? TechnicianCommissionAmount { get; set; }

        /// <summary>
        /// 技师Id
        /// </summary>
        public Guid? TechnicianId { get; set; }

        /// <summary>
        /// 销售提成
        /// </summary>
        public decimal? SalesCommission { get; set; }

        /// <summary>
        /// 销售提成类型
        /// </summary>
        public int? SalesCommissionType { get; set; }

        /// <summary>
        /// 销售提成金额
        /// </summary>
        public decimal? SalesCommissionAmount { get; set; }

        /// <summary>
        /// 销售经理
        /// </summary>
        public Guid? SalesManagerId { get; set; }

        /// <summary>
        /// 实际完成时间
        /// </summary>
        public DateTime? ActualFinishedTime { get; set; }

        /// <summary>
        /// 实际的技师Id
        /// </summary>
        public Guid? ActualTechnicianId { get; set; }

        /// <summary>
        /// 实际的技师名称
        /// </summary>
        public string ActualTechnicianName { get; set; }

        /// <summary>
        /// 实际状态，派工单状态，
        /// null为未派工，具体指参考Constant.WorkingBillStatus
        /// </summary>
        public int? ActualStatus { get; set; }

        public int Status { get; set; }

        /// <summary>
        /// 销售经理
        /// </summary>
        public string SalesManagerName { get; set; }

        public Guid? WorkingBillId { get; set; }

        /// <summary>
        /// 开单的时候选择的技师名称
        /// </summary>
        public string TechnicianName { get; set; }
    }
}
